package com.xgpro.pc.rolemanage.service;

import com.xgpro.common.results.PageResult;
import com.xgpro.domain.rolemanage.dto.UserDTO;
import com.xgpro.domain.rolemanage.entity.Role;
import com.xgpro.domain.studycentre.entity.DaiTuTea;
import com.xgpro.domain.talentintroduction.entity.User;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * @program: xg_dev
 * @description: 用户管理service接口
 * @author: likai
 * @create: 2019-10-07 19:33
 **/
public interface UserService {

    User getUserInfoByUserId(Integer userId);

    void updateUser(User user) throws Exception;

    PageResult<UserDTO> listUser(int pageNum, int pageSize, Map<String,Object> param);

    void deleteUserInfo(Integer userId);

    void addUser(User user);

    Set<Role> findRoleListByUserId(Integer userId);

    void importDDUser(String code) throws Exception;

    void assignRole(Map<String,Object> param);

    void updateUserDetail(Map<String,Object> param);

    void updateTeaRalation(Map<String,Object> param);

    List<DaiTuTea> getStatus(Integer userId);

    String selectAllUserId(List<Integer> userIds);

}
